{
语法百题 解题报告：
 http://git.oschina.net/et0662/sznoi-grammar/ 
}
var
	i,j,n:integer;
begin
	readln(n);
	for i:=1 to n do
	begin
		for j:=1 to n do
			write(i*j,' ');
		writeln;
	end;
end.
